home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 4
/
Gold Medal Software - Volume 4 (Gold Medal) (1994).iso
/
menuts
/
hdmm468.arj
/
IMPORT.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-05-06
|
2KB
|
65 lines
ECHO OFF
CLS
IF NOT EXIST C:\MENU\PRN GOTO :EXIT2
IF NOT EXIST \MENU\PRN GOTO :EXIT
IF NOT %0. == C:\MENU\IMPORT. GOTO :EXIT
ECHO WORKING . . .
IF %1. == UNZIP. GOTO :UNZIP2
CD \MENU
CD C:\MENU
COPY C:\MENU\HDM.000 C:\MENU\HDM000.OLD > NUL
IF EXIST C:\MENU\HDM.CFG COPY C:\MENU\HDM.CFG C:\MENU\HDMCFG.OLD > NUL
IF EXIST C:\MENU\HDM.010 COPY C:\MENU\HDM.010 C:\MENU\HDM010.OLD > NUL
IF EXIST C:\MENU\HDM.015 COPY C:\MENU\HDM.015 C:\MENU\HDM015.OLD > NUL
IF EXIST C:\MENU\HDM.020 COPY C:\MENU\HDM.020 C:\MENU\HDM020.OLD > NUL
IF EXIST C:\TEMP IF NOT EXIST C:\TEMP\PRN DEL C:\TEMP
IF NOT EXIST C:\TEMP\PRN MD C:\TEMP
IF EXIST C:\BIN IF NOT EXIST C:\BIN\PRN DEL C:\BIN
IF NOT EXIST C:\BIN\PRN MD C:\BIN
:START
IF NOT EXIST C:\BIN\PCOPY.EXE COPY \BIN\PCOPY.EXE C:\MENU\PCOPY.EXE > NUL
PCOPY \MENU\HDM?.ZIP C:\MENU\HDM?.ZIP /U/EQ
PCOPY \MENU\IMPORT.BAT,\MENU\FIRSTIME.BAT C:\MENU\ /U/BA > NUL
IF %1. == DEEP. GOTO :DEEP
PCOPY \*.* C:\*.* /E/U/EQ
IF EXIST C:\BIN\NOBIN GOTO :NOBIN
IF EXIST \BIN\PRN PCOPY \BIN\*.* C:\BIN\*.* /U/P/EQ
:NOBIN
IF EXIST \SECURITY\PRN PCOPY \SECURITY\*.* C:\SECURITY\*.* /E/U/BA > NUL
IF EXIST \SECURITY\PRN PCOPY \SECURITY\PK*.EXE C:\SECURITY\*.* /U/BA > NUL
IF EXIST \SECURITY\PRN PCOPY \SECURITY\*.CFG C:\SECURITY\*.CFG /U/BA > NUL
PCOPY \MENU\*.* C:\MENU\*.* /O:HDM.CFG /E/P/U/EQ
PCOPY \*.* C:\*.* /E/U/BA > NUL
GOTO :UNZIP
:DEEP
PCOPY \*.* C:\*.* /P/EQ
IF EXIST \BIN\PRN PCOPY \BIN\*.* C:\BIN\*.* /P/EQ
IF EXIST \SECURITY\PRN PCOPY \SECURITY\*.* C:\SECURITY\*.* /P/EQ
PCOPY \MENU\*.* C:\MENU\*.* /P/EQ
PCOPY \*.* C:\*.* /P/EQ
:UNZIP
C:
CD\MENU
IF EXIST C:\MENU\IMPORT.BAT C:\MENU\IMPORT UNZIP
CLS
ECHO Insert the NEXT Menu Disk!
PAUSE
GOTO :START
:UNZIP2
CLS
ECHO WORKING . . .
CALL DOSVER
CALL PCTVER
IF EXIST CUSTOM. DEL HDM2.ZIP
IF %2. == . PKUNZIP -n HDM?
IF %2. == DEEP. PKUNZIP -o HDM?
PCOPY \MENU\GREETING.SCR \ /U/P/EQ
CALL DOSVER IMPORT
CALL PCTVER IMPORT
PCOPY \MENU\AUTOEXEC.BAT \ /U/SA/BA > NUL
IF EXIST \SYNC.BAT CALL \SYNC.BAT
:EXIT
CALL TESTIMP.BAT
:EXIT2